{include file=member.header.html}
{include file="title.html"}
{include file=member.submenu.html}
<script type="text/javascript">
$(function(){
  $('#send_form').validate({
        errorPlacement: function(error, element){
            $(element).after(error);
            $(element).attr('name')=='msg_content' && $(element).after().css({display:'block'});
        },
        rules : {
            to_user_name : {
                required   : true
            },
            msg_content : {
                required   : true
            }
        },
        messages : {
            to_user_name : {
                required : '{$lang.to_id_empty}'
            },
            msg_content : {
                required   : '{$lang.message_content_empty}'
            }
        }
    });
});
</script>

<form method="post" enctype="multipart/form-data" id="send_form" action="index.php?app=message&act=send">
    <ul class="form_content">
        <li>
            <h3>{$lang.to_user_name}: </h3>
            <p><input type="text" class="text" name="to_user_name" value="{$smarty.get.to_user_name|escape}"/></p>
        </li>
        <li>
            <h3>{$lang.content}: </h3>
            <p><textarea name="msg_content" /></textarea></p>
        </li>
        <li>
            <input type="submit" class="red_btn" value="{$lang.confirm_send}" />
        </li>
    </ul>
</form>

{include file="member.footer.html"}